package com.pg.face.pgface;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class PgFaceApplication extends SpringBootServletInitializer {
	private static Logger logger = LoggerFactory.getLogger(PgFaceApplication.class);

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		SpringApplicationBuilder sab = builder.sources(PgFaceApplication.class);

		return sab;
	}

	public static void main(String[] args) {
		logger.info("===============Spring Boot start=========================");
		SpringApplication.run(PgFaceApplication.class, args);
		logger.info("===============Spring Boot end=========================");
	}

}
